﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="FlatListing.aspx.cs" Inherits="HSMPWeb.Pages.FlatListing" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<br />
<br />
<div>
<table class="style2">
        <tr>
            <td class="style3">
                Enter FlatKey</td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style3">
                &nbsp;</td>
            <td>
                <asp:Button ID="btnRetrieveData" runat="server" BorderWidth="0px" 
            CssClass="btn" Text="Retrieve Data" onclick="btnRetrieveData_Click"/></td>
        </tr>
    </table>
</div>
 <asp:GridView ID="gdvFlatList" runat="server" AutoGenerateColumns="False"
                Font-Names="Verdana" AllowPaging="True" AllowSorting="True" PageSize="10" Width="75%"
                OnPageIndexChanging="gdvFlatList_PageIndexChanging" BorderColor="#CCCCCC" BorderStyle="Solid"
                BorderWidth="1px">
                <AlternatingRowStyle BackColor="#BFE4FF" />
                <PagerStyle BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle Height="30px" BackColor="Gray" Font-Size="15px" BorderColor="#CCCCCC"
                    BorderStyle="Solid" BorderWidth="1px" />
                <RowStyle Height="20px" Font-Size="13px" BorderColor="#000" BorderStyle="Solid"
                    BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="FlatKey" HeaderText="FlatKey" SortExpression="FlatKey" />
                    <asp:BoundField DataField="FlatSocietyKey" HeaderText="FlatSocietyKey" SortExpression="FlatSocietyKey" />
                    <asp:BoundField DataField="FlatBlockName" HeaderText="FlatBlockName" SortExpression="FlatBlockName" />
                    <asp:BoundField DataField="FlatNumber" HeaderText="FlatNumber" SortExpression="FlatNumber" />
                    <asp:BoundField DataField="FlatFloorNumber" HeaderText="FlatFloorNumber" SortExpression="FlatFloorNumber" />
                    <asp:BoundField DataField="FlatType" HeaderText="FlatType" SortExpression="FlatType" />
                    <asp:BoundField DataField="FlatTotalArea" HeaderText="FlatTotalArea" SortExpression="FlatTotalArea" />
                </Columns>
            </asp:GridView>
            <div style="color: Green; font-weight: normal">
            <br />
            <i>You are viewing page
                <%=gdvFlatList.PageIndex + 1%>
                of
                <%=gdvFlatList.PageCount%>
            </i>
        </div>
</asp:Content>
